package cn.huiyunche.base.service.form;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @FileName: cn.huiyunche.driver.service.form
 * @Description: 车型分类表单
 * @author: Aaron
 * @date: 2017/3/2 下午8:18
 */
public class DVehicleClassifyForm {

    private String id;

    //车型分类id
    @NotNull(message = "车型分类编码不能为空")
    @Min(value = 1, message = "车型分类编码必须大于0")
    private String vehicleClassifyId;

    //车型分类名车
    @NotBlank(message = "车型分类名称不能为空")
    private String vehicleClassifyName;

    //燃油类型主键
    @NotNull(message = "燃油类型不能为空")
    @Min(value = 1, message = "燃油类型主键不能小于0")
    private Integer fuelTypeId;

    //百公里油耗
//    @NotNull(message = "油耗不能为空")
//    @DecimalMin(value = "0.01", message = "油耗不能小于0")
//    @Pattern(regexp = RegularConstant.number_decimals, message = "百公里油耗只能为正数")
//    private BigDecimal fuelConsumption;

    private Boolean enable;

    private Date createTime;

    private String creator;

    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVehicleClassifyId() {
        return vehicleClassifyId;
    }

    public void setVehicleClassifyId(String vehicleClassifyId) {
        this.vehicleClassifyId = vehicleClassifyId;
    }

    public String getVehicleClassifyName() {
        return vehicleClassifyName;
    }

    public void setVehicleClassifyName(String vehicleClassifyName) {
        this.vehicleClassifyName = vehicleClassifyName;
    }

    public Integer getFuelTypeId() {
        return fuelTypeId;
    }

    public void setFuelTypeId(Integer fuelTypeId) {
        this.fuelTypeId = fuelTypeId;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "DVehicleClassifyForm{" +
                "id=" + id +
                ", vehicleClassifyId=" + vehicleClassifyId +
                ", vehicleClassifyName='" + vehicleClassifyName + '\'' +
                ", fuelTypeId=" + fuelTypeId +
                ", enable=" + enable +
                ", createTime=" + createTime +
                ", creator='" + creator + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}
